package mspbots.next.ticket.core.data.rejects;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.domain.Persistable;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * com.mspbots.core.ticketai.model.Reject
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/11/26
 */
@Data
@Table("next_ticket_reject")
public class Reject implements Persistable<Long> {

    @Id
    private Long id;
    private Long tenantId;
    private String label;
    private Long ticketId;
    private String reason;
    private LocalDateTime rejectTime;
    private LocalDateTime createdTime;
    private LocalDateTime updateTime;

    @Override
    public boolean isNew() {
        return this.id == 0;
    }
}
